<div class="position_r">
  <a href="javascript:void(0)" onclick="clear_cache()">清除缓存</a>
  <a href="./" target="_blank">网站首页</a>
</div>

<script>  
function clear_cache()
{
	$.ajax({
	type:"post",
	url:"{:$mainlink}?file=common",
	data:{"act":"clearCache"},
	dataType:"json",
	
	success:function(data)
	{
		if(data.state==1)
		{
			tip_msg("缓存清除成功");
		}
	}
	});
}  
</script>  